package com.itheima.demo;

public class DiGuiDemo {
    public static void main(String[] args) {
        int age = getAge(54);
        System.out.println(age);
    }

    private static int getAge(int i) {
        if (i == 1){
            return 20;
        }else {
            return getAge(i--)+2;
        }
    }
}
